<%@ page import="beans.JobBean,java.util.*" language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Job Search</title>

<link rel="stylesheet"
	href="http://cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>

<style>
#v {
	margin-top: 10px;
}
</style>
<body>

<table class="table table-striped" align="center" id="v">
		
		<tr>
			<th colspan="3">
				<div style="margin-left:20px"><h2>View Apply Job</h2></div>
			</th>
		</tr>

		<tr>
			<td align="center" valign="middle">Company</td>
			<td align="center" valign="middle">Salary</td>
			<td align="center" valign="middle">Address</td>
			<td align="center" valign="middle">companySize</td>
			<td align="center" valign="middle">companyType</td>
			<td align="center" valign="middle">jobType</td>
			<td align="center" valign="middle">provider</td>
			<td align="center" valign="middle">Access</td>
		</tr>

		<%
			ArrayList<JobBean> job = (ArrayList<JobBean>) request.getAttribute("job");
			if (job == null || job.size() < 1) {
				out.print("");
			} else {
				for (JobBean jobs : job) {
		%>
		<tr>
			<td align="center" valign="middle"><%=jobs.getCompany()%></td>
			<td align="center" valign="middle"><%=jobs.getSalary()%></td>
			<td align="center" valign="middle"><%=jobs.getAddress()%></td>
			<td align="center" valign="middle"><%=jobs.getCompanysize()%></td>
			<td align="center" valign="middle"><%=jobs.getCompanytype()%></td>
			<td align="center" valign="middle"><%=jobs.getJobtype()%></td>
			<td align="center" valign="middle"><%=jobs.getProvider()%></td>
			<td align="center" valign="middle"><a
				href="DeleteApply?jobid=<%=jobs.getJobId()%>"><button
						class="btn btn-success">delete</button></a></td>
		</tr>
		<%
			}
			}
		%>
	</table>
	
</body>
</html>